package com.ys.entity.base;

import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TB_Site", catalog="Id")
public class TbSite extends BaseEntity<TbSite> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="RegionCode", nameJava="regionCode", typeDataBase="varchar")
	private String regionCode;
	@YsField(nameDataBase="CountryId", nameJava="countryId", typeDataBase="bigint")
	private Long countryId;
	@YsField(nameDataBase="AmazonMarketplaceId", nameJava="amazonMarketplaceId", typeDataBase="varchar")
	private String amazonMarketplaceId;
	@YsField(nameDataBase="AmazonSalesChannel", nameJava="amazonSalesChannel", typeDataBase="varchar")
	private String amazonSalesChannel;
	@YsField(nameDataBase="AmazonAuthUrlMj", nameJava="amazonAuthUrlMj", typeDataBase="varchar")
	private String amazonAuthUrlMj;
	@YsField(nameDataBase="AmazonApiUrlMj", nameJava="amazonApiUrlMj", typeDataBase="varchar")
	private String amazonApiUrlMj;
	@YsField(nameDataBase="AmazonPreAuthUrlGg", nameJava="amazonPreAuthUrlGg", typeDataBase="varchar")
	private String amazonPreAuthUrlGg;
	@YsField(nameDataBase="AmazonAuthUrlGg", nameJava="amazonAuthUrlGg", typeDataBase="varchar")
	private String amazonAuthUrlGg;
	@YsField(nameDataBase="AmazonApiUrlGg", nameJava="amazonApiUrlGg", typeDataBase="varchar")
	private String amazonApiUrlGg;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TbSite setId(Long id) {
		this.id = id;
		return this;
	}
	public String getRegionCode() {
		return regionCode;
	}
	public TbSite setRegionCode(String regionCode) {
		this.regionCode = regionCode;
		return this;
	}
	public Long getCountryId() {
		return countryId;
	}
	public TbSite setCountryId(Long countryId) {
		this.countryId = countryId;
		return this;
	}
	public String getAmazonMarketplaceId() {
		return amazonMarketplaceId;
	}
	public TbSite setAmazonMarketplaceId(String amazonMarketplaceId) {
		this.amazonMarketplaceId = amazonMarketplaceId;
		return this;
	}
	public String getAmazonSalesChannel() {
		return amazonSalesChannel;
	}
	public TbSite setAmazonSalesChannel(String amazonSalesChannel) {
		this.amazonSalesChannel = amazonSalesChannel;
		return this;
	}
	public String getAmazonAuthUrlMj() {
		return amazonAuthUrlMj;
	}
	public TbSite setAmazonAuthUrlMj(String amazonAuthUrlMj) {
		this.amazonAuthUrlMj = amazonAuthUrlMj;
		return this;
	}
	public String getAmazonApiUrlMj() {
		return amazonApiUrlMj;
	}
	public TbSite setAmazonApiUrlMj(String amazonApiUrlMj) {
		this.amazonApiUrlMj = amazonApiUrlMj;
		return this;
	}
	public String getAmazonPreAuthUrlGg() {
		return amazonPreAuthUrlGg;
	}
	public TbSite setAmazonPreAuthUrlGg(String amazonPreAuthUrlGg) {
		this.amazonPreAuthUrlGg = amazonPreAuthUrlGg;
		return this;
	}
	public String getAmazonAuthUrlGg() {
		return amazonAuthUrlGg;
	}
	public TbSite setAmazonAuthUrlGg(String amazonAuthUrlGg) {
		this.amazonAuthUrlGg = amazonAuthUrlGg;
		return this;
	}
	public String getAmazonApiUrlGg() {
		return amazonApiUrlGg;
	}
	public TbSite setAmazonApiUrlGg(String amazonApiUrlGg) {
		this.amazonApiUrlGg = amazonApiUrlGg;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TbSite setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TbSite setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TbSite setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TbSite tbSite(
		String regionCode,
		Long countryId,
		String amazonMarketplaceId,
		String amazonSalesChannel,
		String amazonAuthUrlMj,
		String amazonApiUrlMj,
		String amazonPreAuthUrlGg,
		String amazonAuthUrlGg,
		String amazonApiUrlGg,
		Integer status
			) {
		TbSite entity = new TbSite();
		entity.setRegionCode(regionCode);
		entity.setCountryId(countryId);
		entity.setAmazonMarketplaceId(amazonMarketplaceId);
		entity.setAmazonSalesChannel(amazonSalesChannel);
		entity.setAmazonAuthUrlMj(amazonAuthUrlMj);
		entity.setAmazonApiUrlMj(amazonApiUrlMj);
		entity.setAmazonPreAuthUrlGg(amazonPreAuthUrlGg);
		entity.setAmazonAuthUrlGg(amazonAuthUrlGg);
		entity.setAmazonApiUrlGg(amazonApiUrlGg);
		entity.setStatus(status);
		return entity;
	}
}